hip.api.graphics.color

Undocumented in source.

Members

Functions

color
HipColorf color(float r, float g, float b, float a)
Undocumented in source. Be warned that the author may not have intended to support it.
color
HipColor color(ubyte r, ubyte g, ubyte b, ubyte a)
Undocumented in source. Be warned that the author may not have intended to support it.
color
HipColorf color(float[4] c)
Undocumented in source. Be warned that the author may not have intended to support it.
color
HipColor color(uint c)
Undocumented in source. Be warned that the author may not have intended to support it.
gradientColor
HipColor gradientColor(HipColorStop[] colorStops, float t)
packRGBA
uint packRGBA(ubyte r, ubyte g, ubyte b, ubyte a)
Undocumented in source. Be warned that the author may not have intended to support it.
unpackRGBA
ubyte[4] unpackRGBA(uint rgba)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

HipColor
struct HipColor

This struct is ubyte[4] or uint depending on your usages

HipColorStop
struct HipColorStop

A struct containing a HipColor and a T which describes what color is in this T. This is useful for doing color interpolation and gradients.

HipColorf
struct HipColorf

This construct is compatible with float[4] when setting a shader variable.

Meta